SftTree/OCX 7.0

SftTree.ListSelection1 Property

Softel vdm, Inc.

Returns the selected item.

Deprecated - Provided for compatibility with earlier versions only - Use Items.Selection instead

Syntax       

Get

VB.NET

ItemIndex = object.get_ListSelection1(ByVal SelectionIndex As Integer)  As Integer

VB

ItemIndex = object.ListSelection1(ByVal SelectionIndex As Long)  As Long

C#.NET

int ItemIndex = object.get_ListSelection1(int SelectionIndex);

VC++

long ItemIndex = object->ListSelection1[long SelectionIndex];
long ItemIndex = object->GetListSelection1(long SelectionIndex);

C

HRESULT object->get_ListSelection1(long SelectionIndex, long* ItemIndex);

Delphi

ItemIndex := object.ListSelection1[SelectionIndex : Integer]   : Integer;

object

A SftTree object.

SelectionIndex

The entry number of the selected item index to return.

ItemIndex

Returns the item index of the nth selected item as specified by SelectionIndex.  -1 is returned if no item is selected.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Items.Selection instead

The ListSelection1 property returns the selected item.

The ListSelection1 property returns the zero-based index of the nth selected item as specified by SelectionIndex.  In a single selection tree control (see Items.MultiSelect property), SelectionIndex can only be specified as 0.  The first (and only) selected item is returned or -1 if no item is selected.

In a multiple selection tree control, the index of all selected items can be retrieved.  The Items.SelectionCount property returns the number of selected items.  The Items.SelectionGroupStart and Items.SelectionGroupEnd properties are used to retrieve groups of selected items.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com